package com.example.algorithmdemo.stack;

public class TestStack {
    public static void testMinValueStack(){
        MinStack minStack = new MinStack();
        minStack.push(1);
        minStack.push(2);
        minStack.push(-1);
        minStack.push(-2);
        int result = minStack.minValue();
        System.out.println("TestStack--result>>>>>>" + result);
        minStack.pop();
        result = minStack.minValue();
        System.out.println("TestStack--result>>>>>>" + result);
    }
}
